package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;

import javax.servlet.http.HttpServletRequest;
import java.io.Serializable;

public interface EmployeeService extends IService<Employee> {

    R<Employee> login(HttpServletRequest res, Employee employee);

    R<String> logout(HttpServletRequest res);

    R<Page> page(int page, int pageSize, String name);

    R<String> save(HttpServletRequest request,Employee employee);

    R<String> update(HttpServletRequest request,Employee employee);

    R<Employee> selectById(Serializable id);
}
